7fedd5d14f0fe5a43c6288753f20108fbac831e0,opennms-dao/src/main/java/org/opennms/netmgt/config/SnmpPeerFactory.java,SnmpPeerFactory,SnmpPeerFactory,#String#,114

Before Change


     *                Thrown if the contents do not match the required schema.
     */
    private SnmpPeerFactory(String configFile) throws IOException, MarshalException, ValidationException {
        InputStream cfgIn = new FileInputStream(configFile);

        m_config = (SnmpConfig) Unmarshaller.unmarshal(SnmpConfig.class, new InputStreamReader(cfgIn));
        cfgIn.close();

    }
    

After Change


        this(new FileSystemResource(configFile));
    }
    
    public SnmpPeerFactory(Resource resource) {
        m_config = CastorUtils.unmarshalWithTranslatedExceptions(SnmpConfig.class, resource);
    }
    
    public SnmpPeerFactory(Reader rdr) throws IOException, MarshalException, ValidationException {